/**
 * 
 */
package messaage;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

/**
 * @author Olga
 * 
 */
public class RemovedThreadMsg extends Message {

	protected String forumID;
	protected String threadID;

	/**
	 * 
	 */
	public RemovedThreadMsg(String forumID, String threadID) {
		this.forumID = forumID;
		this.threadID = threadID;
		this.type = "RemovedThreadMsg";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see messaage.Message#toString()
	 */
	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";

		return xml;
	}

	/**
	 * @return the forumID
	 */
	public int getForumID() {
		return Integer.parseInt(forumID);
	}

	/**
	 * @return the threadID
	 */
	public int getThreadID() {
		return Integer.parseInt(threadID);
	}

}
